package edu.ucsc.gameAI.conditions;

import pacman.game.Game;
import edu.ucsc.gameAI.ICondition;

public class AreAllPowerPillsGone implements ICondition {
	
	public boolean test(Game game) 
	{
		//Debug.debug("AreTherePowerPillsLeft", MESSAGETYPE.CONDITION);
		//grab the remaining power pills.
		int[] activePowerPills = game.getActivePowerPillsIndices();
		if(activePowerPills.length <= 0)
			return true; // none left!
		else
			return false; // at least one left!
	}
}